package com.wfw.second.controller;

import com.wfw.second.config.OtherProper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ Author     ：duanchao
 * @ Date       ： 15:50 2021/1/5
 * @ Description：
 */
@RestController
@RequestMapping("/nacos")
@RefreshScope
public class NacosConfigController {

    @Autowired
    private OtherProper otherProper;

    @Value("${bb}")
    private String bb;


    @Value("${cc}")
    private String cc;
    @Value("${wb}")
    private String wb;

    @RequestMapping("/test/order")
    public  String testPropOrder(){
        System.out.println("111111111");
        return  bb +otherProper.getDd() +"***"+cc+"---"+wb;
    }
}